Matthias Clasen [Mon, 31 Aug 2020 14:50:14 +0000 (10:50 -0400)]
Fix a typo
Matthias Clasen [Mon, 31 Aug 2020 12:20:25 +0000 (08:20 -0400)]
Fix up the focus-chain tests
Several typos here, and some of the expected
output changes due to widget class changes.
Matthias Clasen [Mon, 31 Aug 2020 12:13:20 +0000 (08:13 -0400)]
doc shooter: Remove radio button remnants
Matthias Clasen [Mon, 31 Aug 2020 02:25:56 +0000 (22:25 -0400)]
migration guide: Mention button hierarchy changes
Matthias Clasen [Mon, 31 Aug 2020 02:25:36 +0000 (22:25 -0400)]
Drop GtkRadioButton
Matthias Clasen [Mon, 31 Aug 2020 01:07:20 +0000 (21:07 -0400)]
builder-tool: Replace radio buttons by check buttons
For --3to4, replace GtkRadioButton by either GtkCheckButton
or GtkToggleButton, depending on the value of :draw-indicator.
Update the testsuite to cover this.
Matthias Clasen [Mon, 31 Aug 2020 02:17:02 +0000 (22:17 -0400)]
widget-factory: Stop using radio buttons
Use grouped toggle buttons for the view switcher
on page 2.
Matthias Clasen [Mon, 31 Aug 2020 01:51:20 +0000 (21:51 -0400)]
iconbrowser: Stop using radio buttons
Replace them with grouped toggle buttons.
Matthias Clasen [Mon, 31 Aug 2020 01:50:45 +0000 (21:50 -0400)]
fontrendering demo: Stop using radio buttons
Replace them with grouped toggled buttons.
Matthias Clasen [Mon, 31 Aug 2020 01:48:00 +0000 (21:48 -0400)]
togglebutton: Add grouping
This is the replacement for groups of radiobuttons
with draw-indicator = FALSE.
Matthias Clasen [Mon, 31 Aug 2020 00:59:05 +0000 (20:59 -0400)]
Remove GtkRadioButton uses in ui files in tests
Matthias Clasen [Mon, 31 Aug 2020 00:57:25 +0000 (20:57 -0400)]
Remove GtkRadioButton references in the docs
Matthias Clasen [Sun, 30 Aug 2020 23:36:27 +0000 (19:36 -0400)]
Clean up uses of gtk_toggle_button_get/set_active
Replace all uses on check buttons by the corresponding
check button api.
Matthias Clasen [Sun, 30 Aug 2020 22:56:35 +0000 (18:56 -0400)]
docs: Update the gallery image for check buttons
Show grouped and ungrouped check buttons.
Matthias Clasen [Sun, 30 Aug 2020 22:55:47 +0000 (18:55 -0400)]
doc shooter: Drop radio buttons
Instead, show grouped checkbuttons.
Matthias Clasen [Sun, 30 Aug 2020 22:54:53 +0000 (18:54 -0400)]
build: The doc shooter works without x11 now
No need to restrict the build to just x11.
We're not using pixmaps anymore.
Matthias Clasen [Sun, 30 Aug 2020 22:43:33 +0000 (18:43 -0400)]
Drop a long-dead test
We don't parse rc files anymore. Time for testrc.c to go.
Matthias Clasen [Sun, 30 Aug 2020 22:21:48 +0000 (18:21 -0400)]
tests: Stop using radio buttons
Use grouped check buttons.
Matthias Clasen [Sun, 30 Aug 2020 22:21:22 +0000 (18:21 -0400)]
checkbutton: Reuse a helper function
Matthias Clasen [Sun, 30 Aug 2020 22:19:05 +0000 (18:19 -0400)]
checkbutton: Fix clicking on the last group member
Clicking on the last group member was letting me
uncheck it, creating a radio group without active
item, which is not what we want.
Matthias Clasen [Sun, 30 Aug 2020 21:57:35 +0000 (17:57 -0400)]
pagesetupdialog: Drop gtkradiobutton.h include
No longer used.
Matthias Clasen [Sun, 30 Aug 2020 21:56:11 +0000 (17:56 -0400)]
stackswitcher: Drop gtkradiobutton.h include
No longer used.
Matthias Clasen [Sun, 30 Aug 2020 21:55:54 +0000 (17:55 -0400)]
inspector: Drop gtkradiobutton.h include
No longer used.
Matthias Clasen [Sun, 30 Aug 2020 21:55:13 +0000 (17:55 -0400)]
checkbutton: Drop gtkradiobutton.h include
No longer used.
Matthias Clasen [Sun, 30 Aug 2020 21:51:21 +0000 (17:51 -0400)]
mountoperation: Stop using radio buttons
Use grouped check buttons instead.
Matthias Clasen [Sun, 30 Aug 2020 21:43:00 +0000 (17:43 -0400)]
printeroptionwidget: Stop using radio buttons
Use grouped check buttons instead.
Matthias Clasen [Mon, 31 Aug 2020 01:21:38 +0000 (21:21 -0400)]
gtk-demo: Fix up the fontrendering demo
Matthias Clasen [Sun, 30 Aug 2020 21:35:53 +0000 (17:35 -0400)]
gtk-demo: Port to font explorer to grouped checkbuttons
Stop using radio buttons here.
Matthias Clasen [Sun, 30 Aug 2020 21:05:43 +0000 (17:05 -0400)]
widget-factory: Fix up radio buttons
Keep calling them radiobutton, since that is what they are.
And make the insensitive second group of three match what
we have in gtk3-widget-factory, and be parallel to the
insensitive checkbuttons next to it.
Matthias Clasen [Sun, 30 Aug 2020 21:00:15 +0000 (17:00 -0400)]
printdialog: Make collate image smaller
This matches the appearance on GTK 3, and prevents
the checkbuttons next to the image from being spaced
out.
Matthias Clasen [Sun, 30 Aug 2020 20:58:17 +0000 (16:58 -0400)]
printdialog: Fix radio groups
We need to use grouped checkbuttons now.
Matthias Clasen [Sun, 30 Aug 2020 20:41:02 +0000 (16:41 -0400)]
fontchooser: Fix radio groups for features
We need to use grouped checkbuttons now.
Timm Bäder [Fri, 7 Aug 2020 03:45:30 +0000 (05:45 +0200)]
Change button hierarchy
A radiobutton without indicator is really just a togglebutton with a
group.
A radiobutton with indicator is really just a checkbutton with a group.
Make checkbutton its own widget not inheriting from GtkButton.
GtkRadioButton could be removed but it stays for now.
Radiobutton && !draw-indicator => Togglebutton
Checkbutton && !draw-indicator => Togglebutton
Radiobutton && draw-indicator => CheckButton + group
Timm Bäder [Sat, 29 Aug 2020 10:03:20 +0000 (12:03 +0200)]
rendernodes: Whitespace
Timm Bäder [Sat, 29 Aug 2020 09:38:07 +0000 (11:38 +0200)]
wayland: Fix a GSettingsSchema leak
Timm Bäder [Sat, 29 Aug 2020 09:30:45 +0000 (11:30 +0200)]
gl renderer: Adjust gaussian blur sigma
To look more like what browsers do.
Timm Bäder [Sat, 29 Aug 2020 09:29:55 +0000 (11:29 +0200)]
testoutsetshadowdrawing: Make window background white
This makes it easier to compare the rendering with other sources.
Timm Bäder [Fri, 7 Aug 2020 04:43:06 +0000 (06:43 +0200)]
gl: Adjust blur radius_multiplier
2.0 Looks much closer to what my browser does.
Fixes #2777
Timm Bäder [Sat, 22 Aug 2020 15:30:30 +0000 (17:30 +0200)]
icon-browser: Add .navigation-sidebar to sidebar
Timm Bäder [Fri, 21 Aug 2020 03:41:07 +0000 (05:41 +0200)]
gdkcairoprivate: Fix header guard
Timm Bäder [Fri, 21 Aug 2020 03:40:59 +0000 (05:40 +0200)]
spinbutton: Whitespace
Timm Bäder [Sat, 15 Aug 2020 12:27:24 +0000 (14:27 +0200)]
button: Use gtk_widget_class_add_shortcut directly
To show how that works
Timm Bäder [Sat, 15 Aug 2020 09:54:38 +0000 (11:54 +0200)]
button: Whitespace
Timm Bäder [Wed, 12 Aug 2020 04:55:33 +0000 (06:55 +0200)]
testadjustsize: Fix overlay/box confusion
Timm Bäder [Fri, 7 Aug 2020 04:54:16 +0000 (06:54 +0200)]
gsk: Fix border node diff implementation
This was showing up in the interactive constraint demo in gtk4-demo.
Timm Bäder [Sat, 8 Aug 2020 19:11:38 +0000 (21:11 +0200)]
gtk4-demo: Add background to CSS Basics demo
So people can at least read the textview contents
Matthias Clasen [Fri, 28 Aug 2020 00:49:55 +0000 (20:49 -0400)]
NEWS: Updates
Matthias Clasen [Thu, 27 Aug 2020 20:24:34 +0000 (20:24 +0000)]
Merge branch 'synthetic-motion' into 'master'
Synthetic motion
See merge request GNOME/gtk!2493
Matthias Clasen [Wed, 26 Aug 2020 11:57:07 +0000 (07:57 -0400)]
idle sizer: Request a motion event after layout
When we are reallocating widgets, make sure that
we get a motion event in the next frame cycle,
so the hover state gets updated.
Jordi Mas [Thu, 27 Aug 2020 18:54:16 +0000 (20:54 +0200)]
Update Catalan translation
Matthias Clasen [Fri, 21 Feb 2020 21:38:36 +0000 (16:38 -0500)]
Add a function to request motion events
We want to ensure that the pointer position is reflected
when widget geometry changes, so add a function that tells
GDK "please create a motion event at the current position
on this surface, if one doesn't happen already".
Matthias Clasen [Thu, 27 Aug 2020 17:04:34 +0000 (17:04 +0000)]
Merge branch 'matthiasc/for-master' into 'master'
bookmarksmanager: Cancel async reads properly
See merge request GNOME/gtk!2495
Matthias Clasen [Thu, 27 Aug 2020 16:34:02 +0000 (12:34 -0400)]
bookmarksmanager: Cancel async reads properly
This was causing the objects-finalize test to fail in ci.
Matthias Clasen [Thu, 27 Aug 2020 12:12:52 +0000 (12:12 +0000)]
Merge branch 'matthiasc/for-master' into 'master'
Don't export gdk_surface_constrain_size
See merge request GNOME/gtk!2494
Matthias Clasen [Thu, 27 Aug 2020 11:31:45 +0000 (07:31 -0400)]
Don't export gdk_surface_constrain_size
It has one last use in gtkwindow.c, but that will
go away and doesn't need this function to be exported
anyway.
Kukuh Syafaat [Thu, 27 Aug 2020 03:03:54 +0000 (03:03 +0000)]
Update Indonesian translation
Matthias Clasen [Thu, 27 Aug 2020 00:08:45 +0000 (00:08 +0000)]
Merge branch 'wip/carlosg/shuffle-font-mouse-settings' into 'master'
Look up font and mouse settings in gsettings-desktop-schemas
See merge request GNOME/gtk!2489
Matthias Clasen [Wed, 26 Aug 2020 23:44:15 +0000 (23:44 +0000)]
Merge branch 'wip/exalm/hotspot-fix' into 'master'
wayland: Fix dnd hotspot movement
See merge request GNOME/gtk!2492
Alexander Mikhaylenko [Wed, 26 Aug 2020 23:04:48 +0000 (04:04 +0500)]
wayland: Fix dnd hotspot movement
_gdk_wayland_surface_offset_next_wl_buffer() moves the surface relatively
to its current position, pass it a delta instead of new position.
Matthias Clasen [Wed, 26 Aug 2020 22:34:08 +0000 (22:34 +0000)]
Merge branch 'matthiasc/for-master' into 'master'
Matthiasc/for master
See merge request GNOME/gtk!2488
Carlos Garnacho [Wed, 26 Aug 2020 22:27:50 +0000 (00:27 +0200)]
gdk/wayland: Use double-click/drag-threshold settings from g-d-s
Handle both these settings, and the older settings-daemon ones for
backwards compatibility. The keys are already checked for existence
in the schema, so it will just use the existing ones.
Carlos Garnacho [Wed, 26 Aug 2020 22:18:09 +0000 (00:18 +0200)]
gdk/wayland: Look for font settings in gsettings-desktop-schemas
Prefer this location, but also look for the old location in
settings-daemon for backwards compatibility. This applies to both
direct settings lookups and via the settings portal.
Matthias Clasen [Wed, 26 Aug 2020 22:09:47 +0000 (18:09 -0400)]
gdk: Drop an unused vfunc
Matthias Clasen [Wed, 26 Aug 2020 20:55:03 +0000 (16:55 -0400)]
gdk: Cosmetics
Matthias Clasen [Wed, 26 Aug 2020 20:52:03 +0000 (16:52 -0400)]
broadway: Fix up surface_at_position
Matthias Clasen [Wed, 26 Aug 2020 20:35:28 +0000 (16:35 -0400)]
win32: Fix return value of get_device_state
We need to look a the position, not the child surface.
Matthias Clasen [Wed, 26 Aug 2020 20:33:49 +0000 (16:33 -0400)]
wayland: Drop unused argument from query_state
Now that this is backend-only api, we can just
drop unused arguments.
Matthias Clasen [Wed, 26 Aug 2020 20:32:31 +0000 (16:32 -0400)]
wayland: Fix return value of get_device_state
We need to look a the position, not the child surface.
Matthias Clasen [Wed, 26 Aug 2020 20:28:09 +0000 (16:28 -0400)]
broadway: Drop unused argument from query_state
Now that this is backend-only api, we can just
drop unused arguments.
Matthias Clasen [Wed, 26 Aug 2020 20:24:57 +0000 (16:24 -0400)]
broadway: Fix return value of get_device_state
We need to look a the position, not the child surface.
Matthias Clasen [Wed, 26 Aug 2020 20:23:21 +0000 (16:23 -0400)]
x11: Drop unused argument from query_state
Now that this is backend-only api, we can just
drop unused arguments.
Matthias Clasen [Wed, 26 Aug 2020 20:20:34 +0000 (16:20 -0400)]
x11: Fix return value of get_device_state
We need to look a the position, not the child surface.
Matthias Clasen [Wed, 26 Aug 2020 20:09:14 +0000 (16:09 -0400)]
gdk: Drop the query_state vfunc
It is no longer used.
Matthias Clasen [Wed, 26 Aug 2020 20:06:11 +0000 (16:06 -0400)]
x11: Stop setting the query_state vfunc
Matthias Clasen [Wed, 26 Aug 2020 20:05:54 +0000 (16:05 -0400)]
win32: Stop using the query_state vfunc
Matthias Clasen [Wed, 26 Aug 2020 20:05:19 +0000 (16:05 -0400)]
macos: Stop setting the query_state vfunc
Matthias Clasen [Wed, 26 Aug 2020 20:04:25 +0000 (16:04 -0400)]
wayland: Stop using the query_state vfunc
Just call the backend implementation directly.
Matthias Clasen [Wed, 26 Aug 2020 20:03:31 +0000 (16:03 -0400)]
broadway: Stop using the query_state vfunc
Just call the backend implementation directly.
Matthias Clasen [Wed, 26 Aug 2020 19:38:02 +0000 (15:38 -0400)]
Drop _gdk_device_query_state
It is now unused.
Matthias Clasen [Wed, 26 Aug 2020 19:33:37 +0000 (15:33 -0400)]
macos: Stop using _gdk_device_query_state
Directly use the backend implementation.
Matthias Clasen [Wed, 26 Aug 2020 19:31:45 +0000 (15:31 -0400)]
win32: Stop using _gdk_device_query_state
Directly use the backend implementation.
Matthias Clasen [Wed, 26 Aug 2020 19:31:07 +0000 (15:31 -0400)]
x11: Stop using _gdk_device_query_state
Directly use the backend implementation.
Matthias Clasen [Wed, 26 Aug 2020 18:02:18 +0000 (18:02 +0000)]
Merge branch 'matthiasc/for-master' into 'master'
Matthiasc/for master
Closes #3090
See merge request GNOME/gtk!2485
Matthias Clasen [Wed, 26 Aug 2020 17:52:57 +0000 (17:52 +0000)]
Merge branch 'broadway-prune' into 'master'
broadway: Prune fully clipped render nodes
Closes #3086
See merge request GNOME/gtk!2487
Alexander Larsson [Wed, 26 Aug 2020 16:08:00 +0000 (18:08 +0200)]
broadway: Prune fully clipped render nodes
If some node is fully outside the clip region we don't send it to the daemon.
This helps a lot in how much data we send for scrolling viewports.
However, sending partial trees makes node reuse a bit more tricky. We
can't save for reuse any node that could possibly clip different depending on
the clip region, as that could be different next frame. So, unless the
node is fully contained in the current clip (and we thus know it is not
parial) we don't allow reusing that next frame.
This fixes #3086
Fran Dieguez [Wed, 26 Aug 2020 15:42:23 +0000 (15:42 +0000)]
Update Galician translation
Alexander Larsson [Wed, 26 Aug 2020 14:55:56 +0000 (16:55 +0200)]
broadway: Track the clip region in the renderer
If we know what can't possibly be visible we may can later decide to
not expose a node.
Matthias Clasen [Wed, 26 Aug 2020 13:01:48 +0000 (09:01 -0400)]
Make gdk_surface_get_device_position return a boolean
A year ago, we make this function not return the child
surface anymore. But the information whether the device
is actually over the surface is still useful, and we
should not loose it.
Timm Bäder [Wed, 26 Aug 2020 12:38:09 +0000 (12:38 +0000)]
Merge branch 'broadway-debug-nodes' into 'master'
Broadway: Fix handling of debug nodes
See merge request GNOME/gtk!2486
Alexander Larsson [Wed, 26 Aug 2020 12:01:00 +0000 (14:01 +0200)]
Broadway: Fix handling of debug nodes
The debug nodes have id BROADWAY_NODE_DEBUG, which happens to be "12".
So, don't hardcode the wrong number "14".
Matthias Clasen [Wed, 26 Aug 2020 11:26:01 +0000 (07:26 -0400)]
main: Avoid a crash with crossing event handling
We are reusing the GtkCrossingData struct for multiple
calls here, so we need to make sure that the targets
stay alive from beginning to end.
Fixes: #3090
Matthias Clasen [Wed, 26 Aug 2020 11:24:54 +0000 (07:24 -0400)]
widget: Avoid a crash in crossing event handling
We need to make sure that the crossing data stays
alive until we are done handling it, so take references
on all the widgets in it.
Emmanuele Bassi [Wed, 26 Aug 2020 11:20:03 +0000 (11:20 +0000)]
Merge branch 'broadway-alpha-colors' into 'master'
broadway: Correct handling of opaque colors
See merge request GNOME/gtk!2484
Alexander Larsson [Wed, 26 Aug 2020 10:18:28 +0000 (12:18 +0200)]
broadway: Correct handling of opaque colors
If alpha is 255, we use rgb() instead of rgba(), not if alpha is 0.
This makes the title bar gradient go from fully transparent to blue
rather than black to blue..
Matthias Clasen [Tue, 25 Aug 2020 20:53:02 +0000 (20:53 +0000)]
Merge branch 'matthiasc/for-master' into 'master'
fontchooser: Populate the list incrementally
See merge request GNOME/gtk!2483
Emmanuele Bassi [Tue, 25 Aug 2020 20:34:18 +0000 (20:34 +0000)]
Merge branch 'ebassi/for-master' into 'master'
Ebassi/for master
See merge request GNOME/gtk!2480
Aurimas Černius [Tue, 25 Aug 2020 20:23:57 +0000 (23:23 +0300)]
Updated Lithuanian translation
Matthias Clasen [Tue, 25 Aug 2020 20:19:49 +0000 (20:19 +0000)]
Merge branch 'demo-double-border-fixes' into 'master'
gtk-demo: Avoid double borders
See merge request GNOME/gtk!2478
Matthias Clasen [Tue, 25 Aug 2020 20:18:47 +0000 (20:18 +0000)]
Merge branch 'inspector-double-border-fixes' into 'master'
inspector: Avoid double borders
See merge request GNOME/gtk!2477
Matthias Clasen [Tue, 25 Aug 2020 19:13:39 +0000 (15:13 -0400)]
fontchooser: Populate the list incrementally
By adding 20 fonts / frame to the font list, we can
get the font chooser dialog to show up much faster.
This change gets the font chooser up in 265ms here.